import request from '@/utils/request.js'

export const getItem = (current, pageSize, sorter) => {
  return request.get('/h5/interview/query', { params: { current, pageSize, sorter } })
}

export const getDetail = id => {
  return request.get('/h5/interview/show', { params: { id } })
}

export const setOpt = (id, optType) => {
  return request.post('/h5/interview/opt', { id, optType })
}

export const getOpt = (optType, pageSize, page) => {
  return request.get('/h5/interview/opt/list', { params: { optType, pageSize, page } })
}
